package com.bestvike.stone.spring.client.converter;

import com.bestvike.stone.core.serialization.XmlSerializer;
import org.springframework.http.MediaType;
import org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter;

import java.util.Collections;

/**
 * Created by 许崇雷 on 2018-01-10.
 */
public final class JacksonXmlHttpMessageConverterEx extends MappingJackson2XmlHttpMessageConverter {
    public JacksonXmlHttpMessageConverterEx() {
        super(XmlSerializer.getXmlMapper());
        super.setSupportedMediaTypes(Collections.singletonList(MediaType.ALL));
    }
}
